<div id="content">
  <h1>Players</h1>

  <table class="ajaxTable" id="gameTable">
  <thead>
    <tr>
      <th>Name</th>
      <th>Games played</th>
      <th>Realm</th>
    </tr>
  </thead>
  <tbody>
  <?php foreach ($pager->getResults() as $player): ?>
    <tr>
      <td><?php echo link_to($player->name, 'player_detail', array('name' => $player->name)); ?></a></td>
      <td><?php echo link_to($player->gamecount, 'player_detail', array('name' => $player->name)); ?></td>
      <td><?php echo link_to($player->spoofedrealm, 'player_detail', array('name' => $player->name)); ?></td>
    </tr>
  <?php endforeach; ?>
  </tbody>
  </table>
</div>